package god;

public class J05Ex33Patterns {
	public static void main(String[] args) {
		
		for ( int i = 1; i <= 7; ++i) {
			switch (i) {
			case 1 :
				System.out.println("    " + "*");
			break;
			case 2 :
				System.out.println("   " + "***");
				break;
			case 3 :
				System.out.println("  " + "*****");
				break;
			case 4 :
				System.out.println(" " + "*******");
				break;
			case 5 :
				System.out.println("  " + "*****");
				break;
			case 6 :
				System.out.println("   " + "***");
				break;
			case 7 :
				System.out.println("    " + "*");
				break;
			}
		}
		System.out.println();
		
		for ( int j = 1; j <= 9; ++j) {
			switch (j) {
			case 1 :
				System.out.println("    " + "*");
			break;
			case 2 :
				System.out.println("    " + "**");
				break;
			case 3 :
				System.out.println("    " + "***");
				break;
			case 4 :
				System.out.println("    " + "****");
				break;
			case 5 :
				System.out.println("    " + "*****");
				break;
			case 6 :
				System.out.println("    " + "****");
				break;
			case 7 :
				System.out.println("    " + "***");
				break;
			case 8 :
				System.out.println("    " + "**");
				break;
			case 9 :
				System.out.println("    " + "*");
				break;
			}
		}
		System.out.println();
		
		for ( int k = 1; k <= 7; ++k) {
			switch (k) {
			case 1 :
				System.out.println("      " + "*");
			break;
			case 2 :
				System.out.println("      " + "***");
				break;
			case 3 :
				System.out.println("      " + "*****");
				break;
			case 4 :
				System.out.println("*************");
				break;
			case 5 :
				System.out.println("      " + "*****");
				break;
			case 6 :
				System.out.println("      " + "***");
				break;
			case 7 :
				System.out.println("      " + "*");
				break;

			}
		}
		
	}
}
